package ramosmanuales.data.xml;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "derechohabiente")
@XmlType(propOrder = { "delegacion", "ramo", "pagaduria", "noIssste", "rfc", "curp", "persona",
                       "regularizacion", "tipoMovimiento", "quincenaCorte", "amortizacion", "quincenaTotal", "importeTotal"})

public class Derechohabiente {
    private String delegacion;
    private String ramo;
    private String pagaduria;
    private String noIssste;
    private String rfc;
    private String curp;
    private Persona persona;
    private Regularizacion regularizacion;
    private String tipoMovimiento;
    private String quincenaCorte;
    private Amortizacion amortizacion;
    private String quincenaTotal;
    private String importeTotal;

    @XmlElement(name = "delegacion")
    public String getDelegacion(){
        return delegacion;
    }

    public void setDelegacion(String delegacion){
        this.delegacion = delegacion;
    }

    @XmlElement(name = "ramo")
    public String getRamo(){
        return ramo;
    }

    public void setRamo(String ramo){
        this.ramo = ramo;
    }

    @XmlElement(name = "pagaduria")
    public String getPagaduria(){
        return pagaduria;
    }

    public void setPagaduria(String pagaduria){
        this.pagaduria = pagaduria;
    }

    @XmlElement(name = "noIssste")
    public String getNoIssste(){
        return noIssste;
    }

    public void setNoIssste(String noIssste){
        this.noIssste = noIssste;
    }

    @XmlElement(name = "rfc")
    public String getRfc(){
        return rfc;
    }

    public void setRfc(String rfc){
        this.rfc = rfc;
    }

    @XmlElement(name = "curp")
    public String getCurp(){
        return curp;
    }

    public void setCurp(String curp){
        this.curp = curp;
    }

    @XmlElement(name = "persona")
    public Persona getPersona(){
        return persona;
    }

    public void setPersona(Persona persona){
        this.persona = persona;
    }

    @XmlElement(name = "regularizacion")
    public Regularizacion getRegularizacion(){
        return regularizacion;
    }

    public void setRegularizacion(Regularizacion regularizacion){
        this.regularizacion = regularizacion;
    }

    @XmlElement(name = "tipoMovimiento")
    public String getTipoMovimiento(){
        return tipoMovimiento;
    }

    public void setTipoMovimiento(String tipoMovimiento){
        this.tipoMovimiento = tipoMovimiento;
    }

    @XmlElement(name = "quincenaCorte")
    public String getQuincenaCorte(){
        return quincenaCorte;
    }

    public void setQuincenaCorte(String quincenaCorte){
        this.quincenaCorte = quincenaCorte;
    }

    @XmlElement(name = "amortizacion")
    public Amortizacion getAmortizacion(){
        return amortizacion;
    }

    public void setAmortizacion(Amortizacion amortizacion){
        this.amortizacion = amortizacion;
    }

    @XmlElement(name = "quincenaTotal")
    public String getQuincenaTotal(){
        return quincenaTotal;
    }

    public void setQuincenaTotal(String quincenaTotal){
        this.quincenaTotal = quincenaTotal;
    }

    @XmlElement(name = "importeTotal")
    public String getImporteTotal(){
        return importeTotal;
    }

    public void setImporteTotal(String importeTotal){
        this.importeTotal = importeTotal;
    }

    public Object[] getBusquedaElements(){
        return new Object[] {delegacion, ramo, pagaduria, noIssste, rfc, persona.getElements(),
                              regularizacion.getElements()};
    }

    public Object[] getElements(){
        return new Object[] {delegacion, ramo, pagaduria, noIssste, rfc, curp, persona.getElements(),
                             regularizacion.getElements(), tipoMovimiento, quincenaCorte,
                             amortizacion.getElements(), quincenaTotal, importeTotal};
    }
}